package com.multids;

public class DataSourceHolder {

    private static final ThreadLocal<String> holder = new ThreadLocal<>();

    public static String getDBType(){
        return holder.get();
    }

    public static void setDBType(DBTypeEnum dbType){
        holder.set(dbType.getValue());
    }

    public static void clearDBType(){
        holder.remove();
    }

}
